package com.simoniu.mp.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.simoniu.mp.entity.Users;
import com.simoniu.mp.mapper.UsersMapper;
import com.simoniu.mp.service.UsersService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {


    @Override
    public List<Users> queryAllUsersWithMaster() {
        return super.list(null);
    }

    @Override
    @DS("slave")
    public List<Users> queryAllUsersWithSlave() {
        return super.list(null);
    }
}
